package com.kfm.pm;

public class Demo01 {

    public static void main(String[] args) {
        //
        printTotalScore("万叶", 89, 97.1);
        printAvgScore("万叶", 89, 97.1);


        printTotalScore("魏涛", 98, 97.1);
        printAvgScore("魏涛", 98, 97.1);
    }


    public static void printTotalScore(String name, double math, double chinese) {
        System.out.println(name + "的总成绩是" + (math + chinese));
    }

    public static void printAvgScore(String name, double math, double chinese) {
        System.out.println(name + "的平均成绩是" + (math + chinese) / 2);
    }
}
